package com.example.demo.enums;

public enum AppHttpCodeEnum {
    // 成功
    SUCCESS(200,"操作成功"),INTERNAL_SERVER_ERROR(501,"文件上传失败:"),
    SYSTEM_ERROR(500,"出现错误");
    final int code;
    final String msg;
    AppHttpCodeEnum(int code, String errorMessage){
        this.code = code;
        this.msg = errorMessage;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
